<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page import="com.xzcf.service.UserService" %>
<%@ page import="com.xzcf.entity.User" %>
<%@ page import="org.springframework.context.ApplicationContext" %>
<%@ page import="org.springframework.context.support.ClassPathXmlApplicationContext" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  	<meta charset="utf-8" />
	<title>Metronic | Data Tables - Advanced Tables</title>
	<meta content="width=device-width, initial-scale=1.0" name="viewport" />
	<meta content="" name="description" />
	<meta content="" name="author" />
	<!-- BEGIN GLOBAL MANDATORY STYLES -->
	<link href="../style/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
	<link href="../style/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css"/>
	<link href="../style/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
	<link href="../style/css/main-back.css" rel="stylesheet" type="text/css"/>
	<link href="../style/css/style.css" rel="stylesheet" type="text/css"/>
	
	<!-- END GLOBAL MANDATORY STYLES -->
	<link href="../style/css/glyphicons.css" rel="stylesheet" />
	<link href="../style/css/halflings.css" rel="stylesheet" />
	<!-- END PAGE LEVEL STYLES -->
	<link rel="shortcut icon" href="../style/image/favicon.ico" />
	<style type="text/css">
	a{
	color:#999999;
	}
	
	</style>
	
	<script type="text/javascript" src="../style/js/select2.min.js"></script>
	<style type="text/css">
	</style>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  
  
  <body>
  	
  	<script type="text/javascript">
  		function load(){
  			window.location.href = "/XZCF/eight/login!load";
  		}
		function remove() {
			if (window.confirm("你确定要删除全部信息吗?")) {
					document.removeform.submit();		
			}
		}
		//搜索
		function quickSearch() {
			var key = document.selectform.userName.value;
			if (key != null) {
				document.selectform.submit();
			} 
		}
		//分页查询
		function searchForPage(page) {
			document.selectform.currentpage.value = page;
			if (document.selectform.currentpage.value != null) {
				document.selectform.submit();
			} else {
				window.alert("当前页面值不能为空!");
			}
		}
		function del_click(){
	         if(window.confirm("确定删除该用户？")){
	         	return true;
	         }else {
	         	return false;
	         }
	     }
	</script>
  	
	 <div class="main">
	  <div>
	    <ul class="breadcrumb">
	      <li> <i class="icon-home"></i> 主页 <span class="icon-angle-right"></span> </li>
		   <li>  个人信息管理 <span class="icon-angle-right"></span> </li>
		   <li>  我的竞拍 <span class="icon-angle-right"></span> </li>
	    </ul>
	  </div>
	</div>
	<div class="portlet box green">
	  <div class="portlet-title">
	    <div class="caption">我的竞拍</div>
	  </div>
	  
	  
	  <div class="portlet-body">
	    <table class="table  table-bordered" id="sample_1" >
	      <thead>
	        <tr>
	          <th style="text-align:center;width:30%;">物品名称</th>
	          <th style="text-align:center;width:20%;">交易状态</th>  
	          <th style="text-align:center;width:20%;">发布时间</th>
	          <th style="text-align:center;width:20%;">结束时间</th>
	          <th style="text-align:center;width:20%;">option</th>
	        </tr>
	      </thead>
	      <tbody>
	      
	      	<s:iterator value="itemList">
	      		<tr>
	      			<td style="text-align:center;">
	      				<a href='<s:url action="item!displayMyDonate"><s:param name="id" value="id" /></s:url>'><strong><s:property value="name" /></strong></a>
	      			</td>
			        <td style="text-align:center"><s:property value="status" /></td>
			        <td style="text-align:center"><s:property value="releaseTime" /></td>
			        <td style="text-align:center"><s:property value="endTime" /></td>
			        <s:if test="status=='付款成功'">
				        <td style="text-align:center;">
		      				<a href='<s:url action="item!deal"><s:param name="id" value="id" /></s:url>'>
		      					<input type="button" class="ext_btn ext_btn_submit"  value="确认收货">
		      				</a>
		      			</td>
	      			</s:if>
	      			<s:else>
	      				<td></td>
	      			</s:else>
	      		</tr>
	      	</s:iterator>
	        
	      </tbody>
	    </table>
	  </div>
	</div>
  
  </body>
</html>
